package com.moson.girl.controller;

import com.moson.girl.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.sendgrid.SendGridProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: MoXingjian
 * @Description:
 * @Date: Created in 13:23 2018/1/7
 * @Modified By:
 */
@RestController
public class HelloController {

  /*  @Value("${cupSize}")
    private String cupSize;
    @Value("${age}")
    private Integer age;
    @Value("${content}")
    private String content;*/

    @Autowired
    private GirlProperties girlProperties;

//    @RequestMapping(value = {"/hello","/hi"}, method = RequestMethod.GET )
    @GetMapping(value = "hello")
    public String sayHello(){
        return girlProperties.getCupSize();

    }
}
